<?php
    include './base.php';
    $id = $_POST["roomid"];
    $ordernumber = $_POST["ordernumber"];
    $Idcard = $_POST["Idcard"];
    $orderstatus = $_POST["orderstatus"];
    $checkintime = $_POST["checkintime"];
    $checkouttime = $_POST["checkouttime"];
    $sql = "update orders set ordernumber = '$ordernumber',Idcard = '$Idcard',orderstatus = '$orderstatus',checkintime = '$checkintime',checkouttime = '$checkouttime'where roomid = '$id'";
    mysql_query($sql);
    print_r("修改成功!");
?>